<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>添加管理员</title>
  <!-- Bootstrap Styles-->
    <link href="__PUBLIC__static/admin/assets/css/bootstrap.css" rel="stylesheet" />
     <!-- FontAwesome Styles-->
    <link href="__PUBLIC__static/admin/assets/css/font-awesome.css" rel="stylesheet" />

    <link href="__PUBLIC__static/admin/assets/css/select2.min.css" rel="stylesheet" >
  <link href="__PUBLIC__static/admin/assets/css/checkbox3.min.css" rel="stylesheet" >
        <!-- Custom Styles-->
    <link href="__PUBLIC__static/admin/assets/css/custom-styles.css" rel="stylesheet" />
     <!-- Google Fonts-->
   <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
   <link rel="stylesheet" href="__PUBLIC__static/admin/img/easy-upload.css">
</head>
<body>
    <div id="wrapper">
        {include file="layout/top" / }
        <!--/. NAV TOP  -->
      {include file="layout/left" / }
        <!-- /. NAV SIDE  -->
        <div id="page-wrapper" >





            <div id="page-inner">
                       <div class="row">
                        <div class="col-xs-12">
                            <div class="panel panel-default">
                              <div class="row">
                        <div class="col-xs-12">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <div class="card-title">
                                        <div class="title"> Admin Add</div>
                                    </div>
                                </div>

                                <div class="panel-body">
                                   <form class="form-horizontal row-fluid" enctype="multipart/form-data" method ='post'action ="{:url('admin/type/do_update')}">
                                        <input type="hidden" name="id" value="{$data['id']}" >
                                     <div class="form-group">
                                            <label for="" class="col-sm-2 control-label">是否显示</label>
                                            <div class="col-sm-10">
                                               <select  name="static" class="selectbox" style="width:200px;">

                                                   <option value="1">显示</option>
                                                   <option value="2">不显示</option>

                                        </select>
                                            </div>
                                        </div>



                                         <div class="form-group">
                                            <label for="inputPassword3" class="col-sm-2 control-label">类别名称</label>
                                            <div class="col-sm-10">
                                                <input type="lg_name" class="form-control" value="{$data['shop_type_name']}" name="shop_type_name" id="inputPassword3" placeholder="Name ...">
                                            </div>
                                        </div>

                                         <div class="form-group">
                                            <label for="inputPassword3" class="col-sm-2 control-label">排序</label>
                                            <div class="col-sm-10">
                                                <input type="lg_name" class="form-control" value="{$data['sort']}" name="sort" id="inputPassword3" placeholder="Name ...">
                                            </div>
                                        </div>


                                         <div class="form-group">
                                            <label for="inputPassword3" class="col-sm-2 control-label">商品详情图</label>
                                            <div class="col-sm-10"> <div id="easyContainer"></div>
                                                     <input type="file" name="img" >
                                            </div>
                                        </div>

                                       <div  style="text-align:center">
                                        <button type="submit" class="btn btn-default">确定</button>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>


                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>


    <!-- jQuery Js -->

    <script src="__PUBLIC__static/admin/assets/js/jquery-1.10.2.js"></script>
    <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
                                                  <!-- 视实际需要决定是否引入jquery.cookie-1.4.1.min.js-->
                                                  <script src="__PUBLIC__static/admin/img/vendor/jquery.cookie-1.4.1.min.js"></script>
                                                  <script src="__PUBLIC__static/admin/img/easyUpload.js"></script>
                                                  <script>
                                                    $('#easyContainer').easyUpload({
                                                      allowFileTypes: '*.jpg;*.doc;*.pdf',//允许上传文件类型，格式';*.doc;*.pdf'
                                                      allowFileSize: 100000,//允许上传文件大小(KB)
                                                      selectText: '选择文件',//选择文件按钮文案
                                                      multi: true,//是否允许多文件上传
                                                      multiNum: 5,//多文件上传时允许的文件数
                                                      showNote: true,//是否展示文件上传说明
                                                      note: '提示：最多上传5个文件，支持格式为jpg',//文件上传说明
                                                      showPreview: true,//是否显示文件预览
                                                      url: '{:url('admin/shop/add_img')}',//上传文件地址
                                                      fileName: 'file',//文件filename配置参数
                                                      timeout: 30000,//请求超时时间
                                                      okCode: 200,//与后端返回数据code值一致时执行成功回调，不配置默认200
                                                      successFunc: function(res) {
                                                        console.log('成功回调', res.success);
                                                      },//上传成功回调函数
                                                      errorFunc: function(res) {
                                                        console.log('失败回调', res);
                                                      },//上传失败回调函数
                                                      deleteFunc: function(res) {
                                                        console.log('删除回调', res);
                                                      }//删除文件回调函数
                                                    });
                                                  </script>
      <!-- Bootstrap Js -->
    <script src="__PUBLIC__static/admin/assets/js/bootstrap.min.js"></script>
    <!-- Metis Menu Js -->
    <script src="__PUBLIC__static/admin/assets/js/jquery.metisMenu.js"></script>
  <script src="__PUBLIC__static/admin/assets/js/select2.full.min.js"></script>
  <script type="text/javascript">
  $(document).ready(function() {
    $(".selectbox").select2();
  });
  </script>
      <!-- Custom Js -->
    <script src="__PUBLIC__static/admin/assets/js/custom-scripts.js"></script>



</body>
</html>
